<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xsl:stylesheet [
  <!ENTITY copy "&#169;">
  <!ENTITY nbsp "&#160;">
  <!ENTITY laquo "&#171;">
  <!ENTITY raquo "&#187;">
]>
<xsl:stylesheet xmlns="http://www.w3.org/1999/xhtml"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                version="1.0">

    <xsl:include href="../newlist.xsl"/>

    <xsl:template match="/">
        <xsl:apply-templates />
    </xsl:template>

    <xsl:template match="content">
        <link href="/js/jquery-ui/css/smoothness/jquery-ui-1.8.18.custom.css" rel="stylesheet" type="text/css" />
        <link type="text/css" rel="stylesheet" href="/js/upload/jquery.fileupload-ui.css"  />
        <script type="text/javascript" src="/js/jquery-ui/jquery-ui-1.8.18.custom.min.js" />
        <script type="text/javascript" src="/js/jquery-ui/jquery.ui.widget.js" />
        <script type="text/javascript" src="/js/auction_attache_file.js" />
        <script type="text/javascript" src="/js/upload/jquery.iframe-transport.js" />
        <script type="text/javascript" src="/js/upload/jquery.fileupload.js" />

        <style type="text/css">
            .ui-button-text {
            font: 8pt arial !important;
            }

            .progressbar {
            width: 100%;

            }

            .progressbar .bar {
            width: 0%;
            }
        </style>

        <div class="contenthead">
            <xsl:call-template name="Create_Path">
                <xsl:with-param name="last">
                    <xsl:text>Лоти</xsl:text>
                </xsl:with-param>
                <xsl:with-param name="last_url">
                    <xsl:text>/</xsl:text>
                    <xsl:value-of select="$Controller" />
                    <xsl:text>/lots/</xsl:text>
                    <xsl:value-of select="$Main/@id" />
                </xsl:with-param>
            </xsl:call-template>
            <div class="top">
                <span class="title">
                    <xsl:text>Лот №</xsl:text><xsl:value-of select="$Main/@id"/>
                    <a href="/check-auction/view/{$Main/@id_auction}" class="on" style="margin-left:30px;font-size:14pt;">(Аукціон № <xsl:value-of select="$Main/@id_auction"/>)</a>
                </span>  
                <!--span class="actions">
                    <input id="button_attache_file" value="Завантажити файл" type="button" />
                </span-->
            </div>
        </div>

        <div class="aside">
            <div class="head-slide on">Фільтри</div>
            <div class="container">
                <form action="/{$Controller}/file-attache/{$Main/@id}" method="post" name="filter" class="filter">
                    <fieldset>
                        <ul class="editlist">
                            <li>
                                <label>За типом файлу</label>
                                <select name="by_file_type" class="broad100">
                                    <option value="0">
                                        -- Не вказано --
                                    </option>
                                    <xsl:for-each select="$Form/attache_types/row">
                                        <option value="{id}">
                                            <xsl:if test="$Form/by_file_type = id">
                                                <xsl:attribute name="selected">selected</xsl:attribute>
                                            </xsl:if>
                                            <xsl:value-of select="name" />
                                        </option>
                                    </xsl:for-each>
                                </select>
                            </li>
                            <li class="submit">
                                <input name="save" type="submit" id="save" style="font-weight: bold;" value="Застосувати" />
                                <input name="reset" type="submit" id="reset" value="Показати все" />
                            </li>
                        </ul>
                    </fieldset>
                </form>
            </div>
        </div>

        <div class="article">
            <div class="innerNav">
                <ul>
                    <li>
                        <a href="/{$Controller}/view/{$Main/@id}">Лот</a>
                    </li>
                    <li>
                        <a href="" class="on">
                            <xsl:text>Файли</xsl:text>
                            <xsl:if test="normalize-space($Form/files_count/text()) != ''">
                                <xsl:text> (</xsl:text>
                                <xsl:value-of select="$Form/files_count"/>
                                <xsl:text>)</xsl:text>
                            </xsl:if>
                        </a>
                    </li>
                    <li>
                        <a href="/{$Controller}/lot-history/{$Main/@id}/id-lot/{$Main/@id_lot}">Історія</a>
                    </li>
                </ul>
                <br class="spacer"/>
            </div>

            <xsl:call-template name="List">
					<xsl:with-param name="Node" select="Main/List"/>
					<xsl:with-param name="listName" select="'List'"/>
			</xsl:call-template>
        </div>
    </xsl:template>

</xsl:stylesheet>
